# encoding:utf-8
# @Author:zhengyi
# @Time:2022/3/10 10:19
import yaml


def save(data, path):
    with open(path, 'w', encoding='gbk') as f:
        f.truncate()
        yaml.dump(data=data, stream=f)
